package com.quanquan.store.repository;

import com.quanquan.store.entity.Square;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @ClassName:SquareRepository
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/4/1 11:07
 * @Version 1.0
 */
public interface SquareRepository extends JpaRepository<Square,String> {

    @Query(value = "select * from oo_square",nativeQuery = true)
    Square findByStatus();

}
